#ifndef SONGITEM_H
#define SONGITEM_H

#include <QWidget>

namespace Ui {
class SongItem;
}

class SongItem : public QWidget
{
    Q_OBJECT

public:
    explicit SongItem(QWidget *parent = nullptr);
    ~SongItem();
    void SetSong(QString sn,QString an,QString ct,bool v,bool s ,bool like);
    void setMusicName(QString name);
    void setSinger( QString singer);
    void setAlbumName(QString albumName);
    void setLikeIcon(bool like);
    bool islike=false;
private slots:
    void on_like_clicked();
signals:
    void likeChange(bool islike);
private:
    Ui::SongItem *ui;
};

#endif // SONGITEM_H
